package com.flyou.ccnucenter.adapter;

import android.content.Context;
import android.net.Uri;
import android.view.View;

import com.facebook.drawee.view.SimpleDraweeView;
import com.flyou.ccnucenter.R;

import java.util.List;

/**
 * ============================================================
 * 项目名称：HenuCenterPro
 * 包名称：com.flyou.flying.adapter
 * 文件名：HenuImageAdapter
 * 类描述：
 * 创建人：flyou
 * 邮箱：fangjaylong@gmail.com
 * 创建时间：2015/9/28 17:04
 * 修改备注：
 * 版本：@version  V1.0
 * ============================================================
 */
public class HenuImageAdapter extends  SimpleBaseAdapter {
    public HenuImageAdapter(Context context, List<String> data) {
        super(context, data);
    }

    @Override
    public int getItemResource() {
        return R.layout.image_item_layout;
    }

    @Override
    public View getItemView(int position, View convertView, ViewHolder holder) {
        SimpleDraweeView imageView= (SimpleDraweeView) holder.getView(R.id.my_image_view);

        String imageThumbnail = (String) getItem(position);
        imageView.setImageURI(Uri.parse(imageThumbnail));

        return convertView ;
    }
}
